<html>

<body>

<div align="center">






<?php
include ("connect.php");
$dbname = 'Transportation';
mysql_select_db($dbname);
$page_title = "Abu Dhabi Transportation Website - Maps";

$leftMenu = array
	(
		 "Home" => "banner.php",
		"Routes" => "banner.php",
		"Schedule" => "banner.php",
		"Stops" => "banner.php",
		"How To Go There" => "banner.php",
	);
	

$content = "This is the Map for Rotue number  <br/><br/><br/>";

$q = "select distinct RouteCode from busroutes where BusID ='$_POST[mydropdown1]'";
$result = mysql_query($q);



    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAiX9tBRDFbSgpakElIrWwkxRPChpfF5Ia2CLmueUrh3dACB065BR3Jr-lSQxV512XsUirT_Iwdt2zLA"></script>
    <script type="text/javascript">

    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(24.44839974994595,54.390220642089844), 15);
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());       
        map.setMapType(G_SATELLITE_MAP);
    
        // Add an encoded polyline.
        var encodedPoints = mysql_fetch_array($result);
        var encodedLevels = "BBBB";
    
        var encodedPolyline = new GPolyline.fromEncoded({
          color: "#3333cc",
          weight: 10,
          points: encodedPoints,
          levels: encodedLevels,
          zoomFactor: 8,
          numLevels: 4
        });
        map.addOverlay(encodedPolyline);
      }
    }
    
</script>
  



$content .= 'Route: &nbsp';


$content .= '<p><IMG SRC=';
$content .= $_POST[mydropdown1];
$content .= '.jpg </p>';

$content .= ' <body onload="initialize()" onunload="GUnload()" style="font-family: Arial;border: 0 none;">
    <div id="map_canvas" style="width: 500px; height: 300px"></div>';

	    

$content .= '<br/><br/>';

mysql_close($connect);
$content .= '<br/><br/><br/><br/>';


include("default_layout.php");
?>





</div>
</form>
</body>
</html>